package com.admin.vo.base;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@ApiModel(value = "RegionVO(地区对象)")
public class RegionVO implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "地区id", required = true)
    private Integer regionId;
    @ApiModelProperty(value = "地区名称", required = true)
    private String regionName;
    @JSONField(serialize = false)//当前字段不返回
    private Integer parentId;
    private List<RegionVO> childList = new ArrayList<>();

    public Integer getRegionId() {
        return regionId;
    }

    public void setRegionId(Integer regionId) {
        this.regionId = regionId;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public List<RegionVO> getChildList() {
        return childList;
    }

    public void setChildList(List<RegionVO> childList) {
        this.childList = childList;
    }
}